<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<div>
	您还没有创建推荐。
	<a id='create-recommendation-link' href='#'>立即创建</a>
	<div>
	<div class='menu'></div>
	<div class='submenu'><button id='ok'>ok</button></div>
	</div>
</div>

<div style='width:750px;'>
<s:action name="preview" executeResult="true"></s:action>
</div>

<div id="create-recommendation-dialog" title="创建推荐">
	<s:include value="form.jsp"></s:include>
</div>

<script type="text/javascript">
$( "#create-recommendation-dialog" ).dialog({
	autoOpen: false,
	width: 800,
	modal: true,
	buttons: {
		"确定": function() {
			$( this ).dialog( "close" );
		},
		"取消": function() {
			$( this ).dialog( "close" );
		}
	}
});

$('#create-recommendation-link').click(function(){
	$( "#create-recommendation-dialog" ).dialog("open");
});

$('.menu').click(function(){
	$(this).siblings('.submenu').slideDown();
	return false;
});
$('#ok').click(function(){
	$(this).parent().hide();
	return false;
});
$('.submenu').click(function(){
	return false;
});
$(document).click(function()
{
	$('.submenu').hide();
	return false;
});
</script>